package com.lalosoft.misgastos.service;

import java.io.IOException;
import java.util.List;

import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.JsonMappingException;
import org.json.JSONException;

import com.lalosoft.misgastos.domain.Account;
import com.lalosoft.misgastos.domain.Item;

public interface GastosTarjetaService {

	public List<Item> getAllItems();
	
	public String saveItem(String token, Item item) throws JsonGenerationException, JsonMappingException, IOException, JSONException;
	
	public String obtaingData(String token) throws IOException, JSONException;
	
	public String saveAccount(Account account) throws IOException, JSONException;
	
	public String updateAccount(Account account, String token) throws IOException, JSONException;
	
	public boolean deleteItem(String id) throws IOException, JSONException;
	
	public boolean deleteAllItems(String token) throws IOException, JSONException;
	
}
